package com.morning.dp.tools.dp.context;

import java.util.List;

/**
 * 可携带参数的上下文
 *
 * @author @阿秋
 * @date 2021/2/4
 */
public interface ParameterizeContext {

    <P> P getParam(String paramName, Class<P> paramType);

    <P> P getParam(Class<P> paramType);

    <P> List<P> getListParam(String paramName, Class<P> paramType);

    <P> List<P> getListParam(Class<P> paramType);

    void setParam(String paramName, Object param);

    void setParam(Object param);

}
